package cn.psvmc.cxzapi.model.market;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 分类表
 * @Author auto
 * @Date 2024-08-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_sort")
public class TSort implements Serializable {

    //分类id
    @TableId(value = "sort_id", type = IdType.AUTO)
    private Integer sortId;

    //分类名
    @TableField("sort_name")
    private String sortName;

    //分类图
    @TableField("sort_img")
    private String sortImg;

    //所属分类id
    @TableField("sort_pid")
    private Integer sortPid;

    //创建人id
    @TableField(value = "createid", fill = FieldFill.INSERT)
    private Integer createid;

    //创建时间
    @TableField(value = "createtime", fill = FieldFill.INSERT)
    private LocalDateTime createtime;

    //操作人id
    @TableField(value = "updateid", fill = FieldFill.INSERT_UPDATE)
    private Integer updateid;

    //操作时间
    @TableField(value = "updatetime", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatetime;

    //版本号
    @TableField("rversion")
    @Version
    private Integer rversion;

    @TableLogic
    @TableField("deleted")
    private Integer deleted;


}
